package com.qq.crawiling_weather.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qq.crawiling_weather.entity.Cityweather;
import com.qq.crawiling_weather.mapper.CityweatherMapper;
import com.qq.crawiling_weather.service.ICityweatherService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 杨清林
 * @since 2021-01-09
 */
@Service
public class CityweatherServiceImpl implements  ICityweatherService{

    @Autowired
    CityweatherMapper cityweatherMapper;

    @Override
    public List<Cityweather> queryAllCityWeather() {
        return cityweatherMapper.queryAllCityWeather();
    }

    @Override
    public IPage<Cityweather> selectPage(IPage<Cityweather> CityWeatherPage) {
        return cityweatherMapper.selectPage(CityWeatherPage);
    }
}
